package com.hunliji.monitor.manager.api.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * File：FeishuUserInfoRestModel.java<br> Title: <br> Description: <br>
 *
 * @author lejin Date: 2022/10/11
 */
@NoArgsConstructor
@Data
public class FeishuUserInfoDTO {

    private AvatarBean avatar;
    private String city;
    private String country;
    private List<CustomAttrsBean> customAttrs;
    private List<String> departmentIds;
    private String description;
    private String employeeNo;
    private Integer employeeType;
    private String enName;
    private Integer gender;
    private Boolean isTenantManager;
    private String jobTitle;
    private Integer joinTime;
    private String leaderUserId;
    private Boolean mobileVisible;
    private String name;
    private String email;
    private String mobile;
    private String openId;
    private List<OrdersBean> orders;
    private String unionId;
    private String userId;
    private String workStation;

    @NoArgsConstructor
    @Data
    public static class AvatarBean {

        private String avatar240;
        private String avatar640;
        private String avatar72;
        private String avatarOrigin;
    }

    @NoArgsConstructor
    @Data
    public static class CustomAttrsBean {

        private String id;
        private String type;
        private ValueBean value;

        @NoArgsConstructor
        @Data
        public static class ValueBean {

            private String text;
        }
    }

    @NoArgsConstructor
    @Data
    public static class OrdersBean {

        private String departmentId;
        private Integer departmentOrder;
        private Integer userOrder;
    }
}
